<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>修改目的地信息</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
	<form id="fm" method="post" enctype="multipart/form-data">

		<table class="fitem">
			<tr>
				<td><label>中文名:</label>
				</td>
				<td><input name="name" required="true"
					data-options="validType:'length[0,32]'" value="${dest.name }"
					class="easyui-validatebox" />
				</td>
				<td><label>英文名:</label>
				</td>
				<td><input name="enname"
					data-options="validType:'length[0,64]'" class="easyui-validatebox"
					value="${dest.enname }" required="true" />
				</td>
			</tr>
			<tr>
				<td><label>国家名称:</label>
				</td>
				<td><input name="destExt.country" value="${destExt.country }"
					data-options="validType:'length[0,128]'" class="easyui-validatebox"
					required="true" />
				</td>
				<td><label>海拔:</label>
				</td>
				<td><input name="destExt.altitude" value="${destExt.altitude }"
					data-options="validType:'length[0,32]'" class="easyui-validatebox"
					 />
				</td>
			</tr>
			<tr>
				<td><label>人口:</label>
				</td>
				<td><input name="destExt.peopleNum"
					value="${destExt.peopleNum }"
					data-options="validType:'length[0,32]'" class="easyui-validatebox"
					required="true" />
				</td>
				<td><label>语言:</label>
				</td>
				<td><input name="destExt.destLanguage"
					value="${destExt.destLanguage }"
					data-options="validType:'length[0,128]'" class="easyui-validatebox"
					required="true" />
				</td>
			</tr>
			<tr>
				<td><label>货币:</label>
				</td>
				<td><input name="destExt.currency" value="${destExt.currency }"
					data-options="validType:'length[0,32]'" class="easyui-validatebox"
					required="true" />
				</td>
				<td><label>网址:</label>
				</td>
				<td><input name="destExt.netsite" value="${destExt.netsite }"
					data-options="validType:'length[0,128]'" class="easyui-validatebox"
					 />
				</td>
			</tr>
			<tr>
				<td><label>电话:</label>
				</td>
				<td><input name="destExt.telephone"
					value="${destExt.telephone }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox"
					 />
				</td>
				<td><label>航空:</label>
				</td>
				<td><input name="destExt.aviation" value="${destExt.aviation }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox"
					  />
				</td>
			</tr>
			<tr>
				<td><label>铁路:</label>
				</td>
				<td><input name="destExt.railroad" value="${destExt.railroad }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox"
					  />
				</td>
				<td><label>公路:</label>
				</td>
				<td><input name="destExt.highway" value="${destExt.highway }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox"
					  />
				</td>
			</tr>
			<tr>
				<td><label>水运:</label>
				</td>
				<td><input name="destExt.waterTransport"
					value="${destExt.waterTransport }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox"
					  />
				</td>
				<td><label>市内交通:</label>
				</td>
				<td><input name="destExt.localTransport"
					value="${destExt.localTransport }"
					data-options="validType:'length[0,64]'" class="easyui-validatebox"
					  />
				</td>
			</tr>
			<tr class="fitem">
				<td><label>经度:</label></td>
				<td><input name="lng" class="easyui-validatebox" value="${dest.lng }"
					required="required" validType="numberbox" /></td>
				<td><label>纬度:</label></td>
				<td><input name="lat" class="easyui-validatebox" value="${dest.lat }"
					required="required" validType="numberbox" /></td>
			</tr>
			<tr>
				<td><label>关联数据:</label></td>
				<td>
					<input id="dataId" name="relId" required="true" validType="numberbox" value="${dest.relId }"/>
				</td>
				<td>
					<button onclick="query()" type="button">查询</button>
				</td>
				<td></td>
			</tr>
			<tr>
				<td><label>描述信息:</label>
				</td>
				<td colspan="3"><textarea name="destDesc" id="destDesc"
						style="width: 392px; height: 80px"
						data-options="validType:'length[0,1024]'"
						class="easyui-validatebox" required="true">${dest.destDesc }</textarea>
				</td>
			</tr>
			<tr>
				<td><label>新图片:</label>
				</td>
				<td colspan="3"><input name="origImgFile" type="file"
					required="true" />
				</td>
			</tr>
			<tr>
				<td><label>旧图片:</label>
				</td>
				<td colspan="3"><img
					src="${cpath}${img_preffix}${dest.origImg }" width='150'
					height='100' />
				</td>
			</tr>
			<input name="id" type="hidden" value="${dest.id }" />
			<input name="origImg" type="hidden" value="${dest.origImg }" />
		</table>
	</form>
	
	<script type="text/javascript">
		$('#destDesc').ceditor();
	</script>
	<style type="text/css">
#fm {
	margin: 0;
	padding: 10px 10px;
}

.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.fitem {
	margin-bottom: 5px;
}

.fitem label {
	display: inline-block;
	width: 90px;
}
</style>
</body>
</html>